import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import electron from "vite-plugin-electron";
import {resolve} from 'path'


// https://vitejs.dev/config/
export default defineConfig({
    plugins: [
        vue(),
        electron({
            entry: './electron.js'
        })
    ],
    resolve: {
        alias: {
            '@': resolve(__dirname, 'src/'),
            '@components': resolve(__dirname, 'src/components')
        }
    },
    define: {
        'process': {
            env: {},
            version: 'V1.0.0'
        }
    }
})
